﻿Ext.require(['*']);


var center = Ext.create('Ext.tab.Panel', {
    region: 'center',
    id: 'center',
    deferredRender: false,
    activeTab: 0,
    items: [{
        contentEl: 'center2',
        title: '首页',
        autoScroll: true
    }]
})


Ext.onReady(function () {

    Ext.QuickTips.init();
    Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));

  
    var viewport = Ext.create('Ext.Viewport', {
        id: 'border-example',
        layout: 'border',
        items: [
       
            Ext.create('Ext.Component', {
                region: 'north',
                height: 90, 
                autoEl: {
                    tag: 'div',
                    html: "<iframe src='Top.aspx' scrolling='no' frameborder=0 width=100% height=100%></iframe>"
                }
            }), {
              
                region: 'south',
                contentEl: 'south',
                split: true,
                height: 100,
                minSize: 100,
                maxSize: 200,
                title: '<center>Copyright Right ©  &nbsp;    VT.Inc </center>',
                collapsible: true,
                collapsed: true,
                margins: '0 0 0 0'
            }, {
                region: 'west',
                stateId: 'SystemManage',
                id: 'west-panel', // see Ext.getCmp() below
                title: '功能菜单',
                split: false,
                width: 200,
                minWidth: 175,
                maxWidth: 400,
                collapsible: false,
                animCollapse: false,
                margins: '0 0 0 5',
                layout: 'accordion',
                items: [tree]
            },
    
            center]
    });
    
    Ext.get("hideit").on('click', function () {
        var w = Ext.getCmp('west-panel');
        w.collapsed ? w.expand() : w.collapse();
    });
});